package model;

import java.awt.Color;

import enums.GameOverStateEnum;

public class State {
	
	// Static members
	private static State instance = new State();
	
	// Data members

	private GameOverStateEnum gameOverState = 
			GameOverStateEnum.NO_WINNER;
	private Color turn = Color.black;
	
	// Ctor
	
	// make the ctor private for the singleton
	private State() {}
	
	// Static Methods
	public static State getInstance() {
		return instance;
	}
	
	public static void initState() {
		instance = new State();
	}
	
	public Color getTurn() {
		return turn;
	}
	
	public void setTurn(Color turn) {
		this.turn = turn;
	}
	
	public GameOverStateEnum getGameOverState() {
		return gameOverState;
	}
	
	public void setGameOverState(GameOverStateEnum gameOverState) {
		this.gameOverState = gameOverState;
	}
}
